import {
  BaseEntity,
  CreateDateColumn,
  UpdateDateColumn,
  DeleteDateColumn,
} from 'typeorm';

export class CommonEntity extends BaseEntity {
  @CreateDateColumn({ name: 'create_time', select: false })
  createTime: Date;

  @UpdateDateColumn({ name: 'update_time', select: false })
  updateTime: Date;

  @DeleteDateColumn({ name: 'delete_time', nullable: true, select: false })
  deleteTime: Date | null;
}
